package com.friddle.Download.PageGet;

import org.apache.http.Header;
import org.apache.http.HttpHost;

import java.util.List;

/**
 * Created by friddle on 12/30/14.
 */
public class PageResult {
    public String getRequestUrl() {
        return RequestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        RequestUrl = requestUrl;
    }

    private String RequestUrl="";
    private String realUrl="";
    private String HtmlContent="";
    private GetConfigure configure;
    private Integer stateCode;
    private String method="";
    private HttpHost proxy=null;
    private List<Header> headers=null;
    private String errorinfo;
    private boolean needretry=false;
    private int retryTimes;
    private boolean isSuccess=true;

    public String getRealUrl() {
        return realUrl;
    }

    public void setRealUrl(String realUrl) {
        this.realUrl = realUrl;
    }

    public String getHtmlContent() {
        return HtmlContent;
    }

    public void setHtmlContent(String htmlContent) {
        HtmlContent = htmlContent;
    }

    public GetConfigure getConfigure() {
        return configure;
    }

    public void setConfigure(GetConfigure configure) {
        this.configure = configure;
    }

    public Integer getStateCode() {
        return stateCode;
    }

    public void setStateCode(Integer stateCode) {
        this.stateCode = stateCode;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public HttpHost getProxy() {
        return proxy;
    }

    public void setProxy(HttpHost proxy) {
        this.proxy = proxy;
    }

    public String getErrorinfo() {
        return errorinfo;
    }

    public void setErrorinfo(String errorinfo) {
        this.errorinfo = errorinfo;
    }

    public boolean isNeedretry() {
        return needretry;
    }

    public void setNeedretry(boolean needretry) {
        this.needretry = needretry;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    public List<Header> getHeaders() {
        return headers;
    }

    public void setHeaders(List<Header> headers) {
        this.headers = headers;
    }
}
